import request from '@/router/axios';

// 分页
export const getList = (current, size, params) => {
  return request({
    url: '/api/hiddenDangeManage/hiddendangercheck/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 新增
export const add = (row) => {
  return request({
    url: '/api/hiddenDangeManage/hiddendangercheck/save',
    method: 'post',
    data: row
  })
}

// 修改
export const update = (row) => {
  return request({
    url: '/api/hiddenDangeManage/hiddendangercheck/update',
    method: 'post',
    data: row
  })
}

// 获取检查表信息列表
export const getCheckItemList = (params) => {
  return request({
    url: '/api/hiddenDangeManage/hiddendangertable/list',
    method: 'get',
    params: {
      ...params,
    }
  })
}

// 整改设置
export const setRectification = (row) => {
  return request({
    url: '/api/hiddenDangeManage/hiddendangerrectification/set',
    method: 'post',
    data: row
  })
}